package com.lx.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lx.entity.LxPar;
import com.lx.entity.vo.LxParVo;
import com.lx.mapper.LxParMapper;
import com.lx.service.LxParService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @author: xuaner
 * @date: 2021年09月14日 9:10
 */

@Service
public class LxParServiceImpl extends ServiceImpl<LxParMapper, LxPar> implements LxParService {
    @Override
    public void pageQuery(Page<LxParVo> pageParam){
        List<LxParVo> records = baseMapper.selectLxProList(pageParam);
        pageParam.setRecords(records);
        pageParam.setTotal(records.size());
    }
}
